﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using umbraco.cms.businesslogic.relation;

namespace Umbraco.RelationTypes
{
    /// <summary>
    ///  This is used to build a collection of relations from a single sql statement,
    ///  as the umbraco.cms.businesslogic.relation.Relation obj will hit the DB for each instace it creates
    /// </summary>
    internal struct ReadOnlyRelation
    {
        /// <summary>
        /// Gets or sets the Relation Id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets Relation Parent Id
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// Gets or sets Relation Parent Text
        /// </summary>
        public string ParentText { get; set; }

        /// <summary>
        /// Gets or sets Relation Child Id
        /// </summary>
        public int ChildId { get; set; }

        /// <summary>
        /// Gets or sets Relation Child Text
        /// </summary>
        public string ChildText { get; set; }

        /// <summary>
        /// Gets or sets Relation RelationType Id
        /// </summary>
        public int RelType { get; set; }

        /// <summary>
        /// Gets or sets Relation DateTime
        /// </summary>
        public DateTime DateTime { get; set; }

        /// <summary>
        /// Gets or sets Relation Comment
        /// </summary>
        public string Comment { get; set; }
    }
}